package team.star.werespos.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.Instant;

/**
 * FoodCategory class<br/>
 * 菜品类别
 *
 * @author hdonghong
 * @since 2019/03/23
 */
@TableName("`food_category`")
@Data
@Accessors(chain = true)
public class FoodCategory implements Serializable {

    private static final long serialVersionUID = -806169374869228130L;

    @TableId
    private Integer categoryId;

    /** 菜品类别 */
    private String categoryName;

    /** 是否删除，1是 */
    @JsonIgnore
    @TableLogic
    private Integer isDel;

    /** 创建时间 */
    @JsonIgnore
    private Instant createTime;

    /** 修改时间 */
    @JsonIgnore
    private Instant updateTime;
}
